<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <meta charset="UTF-8">
   <link rel="stylesheet" href="__PUBLIC__/css/common.css">
   <link rel="stylesheet" href="__PUBLIC__/css/main.css">
   <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
   <script type="text/javascript" src="__PUBLIC__/js/colResizable-1.3.min.js"></script>
   <script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
   
   <script type="text/javascript">
      $(function(){  
        $(".list_table").colResizable({
          liveDrag:true,
          gripInnerHtml:"<div class='grip'></div>", 
          draggingClass:"dragging", 
          minWidth:30
        }); 
        
      }); 

  	function deleteStore(url, obj) {
		   if (confirm("您确定要删除该店铺吗？")) {
			   window.location = url;
		   } 
	}
  	function editStore(url, obj) {
			   window.location = url;
	}
   </script>
</head>
<body>

     <div id="table" class="mt10">
        <div class="box span10 oh">
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
                <tr>
                   <th width="5%">序号</th>
                   <th width="5%">store_id</th>
                   <th width="10%">名称</th>
                   <th width="10%">电话号码</th>
                   <th width="5%">老板姓名</th>
                   <th width="30%">地址</th>
                   <th width="10%">密码</th>
                   <th width="5%">是否开通</th>
                   <th width="20%">操作</th>
                    </tr>
                    
               <foreach name="storeList" item="store">
                <tr class="tr">
                	<td class="td_center">
                	{{$key+1}}
                	</td>
                	<td>{{$store.id}}</td>
                   	<td>{{$store.name}}</td>
                   	<td>{{$store.phone}}</td>
                   	<td>{{$store.store_boss}}</td>
                   <td>{{$store.address}}</td>
                   	 <td>{{$store.password}}</td>
                   	 <td>
                   	     <if condition="$store.is_open eq 1"> 
									 <img src="__PUBLIC__/images/pic21.gif">
								<elseif condition="$store.is_open eq 0"/>
								 <img src="__PUBLIC__/images/pic22.gif">
								</if>
                   	 </td>
                  	<td>
                  	  <input type="button" name="button" class="btn btn82 btn_add" value="修改" onclick="javascript:editStore('{{:U('Index/editStore')}}?id={{$store.id}}', this);">
      				  <input type="button" name="button" class="btn btn82 btn_del" value="删除" onclick="javascript:deleteStore('{{:U('Index/delStore')}}?id={{$store.id}}', this);">
                  	 </td>
                </tr>
              </foreach>
              </table>
             <!-- <div class="page mt10">
                <div class="pagination">
                  <ul>
                      <li class="first-child"><a href="#">首页</a></li>
                      <li class="disabled"><span>上一页</span></li>
                      <li class="active"><span>1</span></li>
                      <li><a href="#">2</a></li>
                      <li><a href="#">下一页</a></li>
                      <li class="last-child"><a href="#">末页</a></li>
                  </ul>
                </div>
              </div>
        </div>
         --> 
     </div>
     
     
</body>
</html>